home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 295_01 / install.bat < prev    next >
DOS Batch File  |  1989-12-28  |  3KB  |  86 lines

  1. @echo off
  2. rem blkio installation batch file-----------------------------------------------
  3. rem #ident    "install.bat    1.3 - 89/10/31"
  4.  
  5. rem ----------------------------------------------------------------------------
  6. rem This batch file is provided for installation on MS-DOS systems.
  7. rem It is written for use with Borland Turbo C.  To convert it for use
  8. rem with another compiler, make the following modifications:
  9. rem      1. Replace \tc\include with the include directory used by the
  10. rem         new compiler.
  11. rem      2. Replace \tc\lib with the library directory used by the new
  12. rem         compiler.
  13. rem      3. Replace tcc with the command to invoke the compiler being
  14. rem         used, replacing the switches also, if necessary.  -O is
  15. rem         the optimize option and -c means compile but don't link.
  16. rem         -C- disables nested comments.  -m_ specifies the desired
  17. rem         memory model.
  18. rem      4. The command to build the library archive from the object
  19. rem         modules may vary more drastically.  Turbo C used the tlib
  20. rem         command with what Borland refers to as a response file.
  21. rem         This response file, blkio.rsp, contains a list of all the
  22. rem         object modules in the library.
  23. rem ----------------------------------------------------------------------------
  24.  
  25. rem install boolean header file-------------------------------------------------
  26. rem
  27. if not exist \tc\include\bool.h goto bool
  28. echo \tc\include\bool.h exists.  ^C to exit, any other key to continue.
  29. pause
  30. :bool
  31. echo on
  32. copy bool.h \tc\include\bool.h
  33. @echo off
  34.  
  35. rem extract the reference manual------------------------------------------------
  36. if not exist blkio.man goto man
  37. echo blkio.man exists.  ^C to exit, any other key to continue.
  38. pause
  39. :man
  40. if not exist tmp goto tmp
  41. echo tmp exists.  ^C to exit, any other key to continue.
  42. pause
  43. :tmp
  44. echo on
  45. copy blkio.h/a+bclose.c+bexit.c+bflpop.c+bflpush.c+bflush.c+bgetb.c tmp
  46. type tmp | manx -c > blkio.man
  47. copy bgetbf.c/a+bgeth.c+bgethf.c+bopen.c+bputb.c+bputbf.c tmp
  48. type tmp | manx -c >> blkio.man
  49. copy bputh.c/a+bputhf.c+bsetbuf.c+bsetvbuf.c+bsync.c+lockb.c tmp
  50. type tmp | manx -c >> blkio.man
  51. del tmp
  52. @echo off
  53.  
  54. rem compile all blkio source files----------------------------------------------
  55. echo on
  56. tcc -O -c -C- -mh bclose.c   bexit.c    bflpop.c   bflpush.c  bflush.c   bgetb.c
  57. tcc -O -c -C- -mh bgetbf.c   bgeth.c    bgethf.c   bopen.c    bputb.c    bputbf.c
  58. tcc -O -c -C- -mh bputh.c    bputhf.c   bsetbuf.c  bsetvbuf.c bsync.c    lockb.c
  59. tcc -O -c -C- -mh bops.c     buops.c
  60. @echo off
  61.  
  62. rem build the blkio library archive---------------------------------------------
  63. echo on
  64. tlib blkio @blkio.rsp
  65. @echo off
  66.  
  67. rem install the blkio library---------------------------------------------------
  68. if not exist \tc\include\blkio.h goto h
  69. echo \tc\include\blkio.h exists.  ^C to exit, any other key to continue.
  70. pause
  71. :h
  72. echo on
  73. copy blkio.h \tc\include\blkio.h
  74. @echo off
  75.  
  76. if not exist \tc\lib\blkio.lib goto lib
  77. echo \tc\lib\blkio.lib exists.  ^C to exit, any other key to continue.
  78. pause
  79. :lib
  80. echo on
  81. copy blkio.lib \tc\lib\blkio.lib
  82. @echo off
  83.  
  84. rem end of blkio installation batch file----------------------------------------
  85. :end
  86.